const db = uniCloud.database();
exports.main = async (event, context) => {
	let {detail} = event;
	return db.collection("article").doc(detail._id).update({
		title:detail.title,
		author:detail.author,
		context:detail.context
	});
};
